# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=ksmbd-tools
pkgver=3.5.2
pkgrel=0
pkgdesc="userspace tools for kernel smb server (ksmbd)"
url="https://github.com/cifsd-team/ksmbd-tools"
arch="all"
license="GPL-2.0-or-later"
subpackages="$pkgname-doc"
makedepends="autoconf automake libtool libnl3-dev glib-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/cifsd-team/ksmbd-tools/archive/refs/tags/$pkgver.tar.gz"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c4a7500aae3a20e7987c9aec61f57ab40e9c771dfa54609cdd95d3a1b2318a2abc5bf946735fc38710c0bb06a4a06c675ddb4f56ac508f31325c8ea6156b5645  ksmbd-tools-3.5.2.tar.gz
"
